import React from 'react';
import { Descriptions } from 'antd';

const text = `
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
annotations:
app.oam.dev/appAlias: 人脸识别服务
app.oam.dev/appName: htjg
app.oam.dev/deployVersion: "20240517061406683"
app.oam.dev/publishVersion: workflow-develop-20240517061406692
app.oam.dev/workflowName: workflow-develop
creationTimestamp: null
labels:
app.oam.dev/appName: htjg
app.oam.dev/source-of-truth: from-velaux
name: htjg
namespace: develop
spec:
components:
- name: htjg
properties:
cmd:
- sh
- -c
- curl -X GET http://192.168.8.161:5793/pilot/settings/scripts/deploy | bash
cpu: "2"
env:
- name: VOYAGER_REGISTRY_ADDRESS
value: 192.168.8.161
- name: VOYAGER_REGISTRY_PORT
value: "5741"
- name: VOYAGER_SERVICE_VERSION
value: 1.0.0.0
- name: VOYAGER_APPSVR_TYPE
- name: VOYAGER_PILOT_PORT
value: "5793"
- name: VOYAGER_SERVICE_NAME
value: htjj
- name: VOYAGER_RUNTIME_TYPE
value: JDK8
- name: VOYAGER_PILOT_HOST
value: 192.168.8.161
- name: VOYAGER_SERVICE_PREFIX
value: htjj
- name: VOYAGER_CLOUD_ID
value: $dark
- name: VOYAGER_ACCESS_PORTS
value: "8080"
- name: VOYAGER_ARCH_TYPE
value: x86
exposeType: NodePort
image: dockerhub.kubekey.local/cetc/base
imagePullPolicy: IfNotPresent
imagePullSecrets:
- harbor
livenessProbe:
failureThreshold: 3
httpGet:
path: /send
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
memory: 2048Mi
ports:
- expose: true
port: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /send
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
traits:
- properties:
replicas: 3
type: scaler
type: webservice
- name: htjg-jjfw
properties:
cmd:
- sh
- -c
- curl -X GET http://192.168.8.161:5793/pilot/settings/scripts/deploy | bash
cpu: "2"
env:
- name: VOYAGER_REGISTRY_ADDRESS
value: 192.168.8.161
- name: VOYAGER_REGISTRY_PORT
value: "5741"
- name: VOYAGER_SERVICE_VERSION
value: 1.0.0.0
- name: VOYAGER_APPSVR_TYPE
- name: VOYAGER_PILOT_PORT
value: "5793"
- name: VOYAGER_SERVICE_NAME
value: jjfw
- name: VOYAGER_RUNTIME_TYPE
value: JDK8
- name: VOYAGER_PILOT_HOST
value: 192.168.8.161
- name: VOYAGER_SERVICE_PREFIX
value: jjfw
- name: VOYAGER_CLOUD_ID
value: $dark
- name: VOYAGER_ACCESS_PORTS
value: "8080"
- name: VOYAGER_ARCH_TYPE
value: x86
exposeType: NodePort
image: dockerhub.kubekey.local/cetc/base
imagePullPolicy: IfNotPresent
imagePullSecrets:
- harbor
livenessProbe:
failureThreshold: 3
httpGet:
path: /send
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
memory: 2048Mi
ports:
- expose: true
port: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /send
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
traits:
- properties:
replicas: 1
type: scaler
type: webservice
- name: htjg-yjfk
properties:
cmd:
- sh
- -c
- curl -X GET http://192.168.8.161:5793/pilot/settings/scripts/deploy | bash
cpu: "2"
env:
- name: VOYAGER_REGISTRY_ADDRESS
value: 192.168.8.161
- name: VOYAGER_REGISTRY_PORT
value: "5741"
- name: VOYAGER_SERVICE_VERSION
value: 1.0.0.0
- name: VOYAGER_APPSVR_TYPE
- name: VOYAGER_PILOT_PORT
value: "5793"
- name: VOYAGER_SERVICE_NAME
value: yjfk
- name: VOYAGER_RUNTIME_TYPE
value: JDK8
- name: VOYAGER_PILOT_HOST
value: 192.168.8.161
- name: VOYAGER_SERVICE_PREFIX
value: yjfk
- name: VOYAGER_CLOUD_ID
value: $dark
- name: VOYAGER_ACCESS_PORTS
value: "8080"
- name: VOYAGER_ARCH_TYPE
value: x86
exposeType: NodePort
image: dockerhub.kubekey.local/cetc/base
imagePullPolicy: IfNotPresent
imagePullSecrets:
- harbor
livenessProbe:
failureThreshold: 3
httpGet:
path: /send
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
memory: 2048Mi
ports:
- expose: true
port: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /send
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
traits:
- properties:
replicas: 1
type: scaler
type: webservice
- name: htjg-zgzc
properties:
cmd:
- sh
- -c
- curl -X GET http://192.168.8.161:5793/pilot/settings/scripts/deploy | bash
cpu: "2"
env:
- name: VOYAGER_REGISTRY_ADDRESS
value: 192.168.8.161
- name: VOYAGER_REGISTRY_PORT
value: "5741"
- name: VOYAGER_SERVICE_VERSION
value: 1.0.0.1
- name: VOYAGER_APPSVR_TYPE
- name: VOYAGER_PILOT_PORT
value: "5793"
- name: VOYAGER_SERVICE_NAME
value: zgzc
- name: VOYAGER_RUNTIME_TYPE
value: JDK8
- name: VOYAGER_PILOT_HOST
value: 192.168.8.161
- name: VOYAGER_SERVICE_PREFIX
value: zgzc
- name: VOYAGER_CLOUD_ID
value: $dark
- name: VOYAGER_ACCESS_PORTS
value: "8080"
- name: VOYAGER_ARCH_TYPE
value: x86
exposeType: NodePort
image: dockerhub.kubekey.local/cetc/base
imagePullPolicy: IfNotPresent
imagePullSecrets:
- harbor
livenessProbe:
failureThreshold: 3
httpGet:
path: /send
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
memory: 2048Mi
ports:
- expose: true
port: 8080
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /send
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
traits:
- properties:
replicas: 1
type: scaler
type: webservice
policies:
- name: local-xxx-v1-develop
properties:
clusters:
- local
namespace: xxx-v1-develop
type: topology
workflow:
mode:
steps: StepByStep
subSteps: DAG
steps:
- meta:
name: ddddd
type: print-message-in-status
- meta:
name: db-install
type: vela-cli
- meta:
alias: Deploy To local-xxx-v1-develop
name: local-xxx-v1-develop
properties:
policies:
- local-xxx-v1-develop
type: deploy
status:
123
`;

function App() {
  return (
    <textarea
      style={{
        width: '92%',
        height: '95%',
        background: '#0a1231',
        color: '#FFFFFF',
        fontSize: '16px',
        lineHeight: '22px',
        padding: 10,
        border: '1px solid #EEEEEE',
        borderRadius: 5,
        scrollbarWidth: 1,
      }}
      value={text}
    />
  );
}
export default App;
